// 封装首页相关的请求函数
import http from '../ubtils/request'

export function productListRequest(count = 1, limitNum = 10) {
  return http({
    url: '/api/pro/list',
    method: 'get',
    params: { count, limitNum },
  })
}

export function productDetailRequest(pid) {
  return http({
    url: '/api/pro/detail/' + pid,
    method: 'get',
  })
}
